-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babel-plugin-makepot: Fix non-existing translation handling #49431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't run this, but code-wise it looks good 👍 I wish we had more types 🙂
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I have tested it, it works great. Thank you! |
What?
This PR fixes a bug where we're incorrectly handling non-existing translations.
Why?
We're fixing a regression that was introduced in #45946.
Original report by @sjinks:
How?
We're defaulting the missing translation to an empty object so it would properly be calculated as the same translation if all keys are missing, preserving the original behavior with
_.pickBy()
.Testing Instructions
_.pick()
#45946.